package com.ruoyi.dynamic.controller.app;

import com.ruoyi.common.core.constant.constant.PathConstant;
import com.ruoyi.common.core.pojo.vo.MultiVO;
import com.ruoyi.common.core.result.Result;
import com.ruoyi.dynamic.model.pojo.entity.RoomTheme;
import com.ruoyi.dynamic.service.IRoomThemeService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "App-房间主题背景", description = "App-房间主题背景")
@RestController
@RequestMapping(PathConstant.APP_PATH + "room-theme")
public class RoomThemeController {

    private final IRoomThemeService iRoomThemeService;

    public RoomThemeController(IRoomThemeService iRoomThemeService) {
        this.iRoomThemeService = iRoomThemeService;
    }

    @Operation(summary = "列表", description = "列表")
    @GetMapping("list")
    public MultiVO<RoomTheme> list() {
        return Result.multi(iRoomThemeService.list());
    }
}
